package iot.operation.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备数据配置对象 iot_device_type_conf
 * 
 * @author lujw
 * @date 2022-06-09
 */
public class IotDeviceTypeConf extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 所属对象 */
    @Excel(name = "所属对象")
    private String targetType;

    /** 所属对象ID */
    @Excel(name = "所属对象ID")
    private Long targetId;

    /** 值代码 */
    @Excel(name = "值代码")
    private String valCode;

    /** 值名称 */
    @Excel(name = "值名称")
    private String valName;

    /** 显示类型：原数显示、字典显示 */
    @Excel(name = "显示类型：原数显示、字典显示")
    private String viewType;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 动作 */
    @Excel(name = "动作")
    private String valAction;

    /** 数值字典 */
    @Excel(name = "数值字典")
    private String dataValues;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTargetType(String targetType) 
    {
        this.targetType = targetType;
    }

    public String getTargetType() 
    {
        return targetType;
    }
    public void setTargetId(Long targetId) 
    {
        this.targetId = targetId;
    }

    public Long getTargetId() 
    {
        return targetId;
    }
    public void setValCode(String valCode) 
    {
        this.valCode = valCode;
    }

    public String getValCode() 
    {
        return valCode;
    }
    public void setValName(String valName) 
    {
        this.valName = valName;
    }

    public String getValName() 
    {
        return valName;
    }
    public void setViewType(String viewType) 
    {
        this.viewType = viewType;
    }

    public String getViewType() 
    {
        return viewType;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setValAction(String valAction) 
    {
        this.valAction = valAction;
    }

    public String getValAction() 
    {
        return valAction;
    }
    public void setDataValues(String dataValues) 
    {
        this.dataValues = dataValues;
    }

    public String getDataValues() 
    {
        return dataValues;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("targetType", getTargetType())
            .append("targetId", getTargetId())
            .append("valCode", getValCode())
            .append("valName", getValName())
            .append("viewType", getViewType())
            .append("unit", getUnit())
            .append("valAction", getValAction())
            .append("dataValues", getDataValues())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
